@(personForm: Form[models.Person])

@import helper._

@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.render) } 

@main {
    
    <h1>Add a person</h1>
    
    @form(routes.PersonController.save()) {
        
        <fieldset>
        
            @inputText(personForm("name"), '_label -> "Person name")
            @inputText(personForm("birthday"), '_label -> "Birthday")
            @inputText(personForm("address"), '_label -> "Address")
            @inputText(personForm("street"), '_label -> "Street")
            @inputText(personForm("cp"), '_label -> "Code Postal")
            @inputText(personForm("city"), '_label -> "City")
            

        </fieldset>
        
        <div class="actions">
            <input type="submit" value="Create this person" class="btn primary"> or 
            <a href="@routes.PersonController.list()" class="btn">Cancel</a> 
        </div>
        
    }
    
}